Enviado em 02/11/2011 - 12:55h
Boa tarde pessoal!
http_port 3128 transparent
visible_hostname InternetServer
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl all src 0.0.0.0/24
acl rede_interna src 192.168.1.0/24
acl ACESSO_LIBERADO src "/etc/squid/ctrl/acessoliberado.txt"
acl SITES_LIBERADOS url_regex -i "/etc/squid/ctrl/sitesliberados.txt"
acl streaming rep_mime_type ^video/x-ms-asf
acl proibir_musica urlpath_regex -i \.aif$ \.aifc$ \.aiff$ \.asf$ \.asx$ \.avi$ \.au$ \.m3u$ \.med$ \.mp3$ \.m1v$ \.mp2$ \.mp2v$ \.mpa$ \.mov$ \.mpe$ \.mpg$ \.mpeg$ \.ogg$ \.pls$ \.ram$ \.ra$ \.ram$ \.snd$ \.wma$ \.wmv$ \.wvx$ \.mid$ \.midi$ \.rmi$
http_access allow ACESSO_LIBERADO
http_reply_access deny streaming
http_access deny proibir_musica
http_access deny !Safe_ports
http_access deny !SITES_LIBERADOS
http_access allow rede_interna
http_access deny all